const { request, serializeStr } = require("../util/util");

const getDetail = async ({ id = "1260" }) => {
	return await request({
		url: "https://lotto.gotogame.net/app/index.php",
		method: "GET",
		param: {
			i: 3,
			t: 0,
			v: "1.1.7",
			from: "wxapp",
			c: "entry",
			a: "wxapp",
			do: "article",
			m: "jueqi_imagetext",
			sign: "5d420d78a164fc66139695e365430651",
			id,
			openid: "oNkBd5ed0EpxYj8H-2pfgWy4tB9U"
		},
		option: { "Content-Type": "application/x-www-form-urlencoded" }
	});
};

module.exports = {
	getDetail
};
